package com.example.myapplication333;

import android.app.Activity;
import android.view.View;
import android.widget.TextView;

public class MyClick implements View.OnClickListener  {

    private Activity mActivity;
    private TextView text2;


    public MyClick(Activity activity, TextView textView ){
        this.mActivity =activity ;
        this.text2 =textView ;
    }

    @Override
    public void onClick(View v) {
        text2 .setText("外部类");

    }

}
